//
//  ClickCountViewController.m
//  RuntimeDemo
//
//  Created by zxs on 2021/2/26.
//

#import "ClickCountViewController.h"
#import "UIButton+ClickCount.h"

@interface ClickCountViewController ()
@property (weak, nonatomic) IBOutlet UILabel *infoLabel;

@property (weak, nonatomic) IBOutlet UIButton *button1;

@property (weak, nonatomic) IBOutlet UIButton *button2;

@end

@implementation ClickCountViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (IBAction)button1Touched:(id)sender {
    self.infoLabel.text = [NSString stringWithFormat:@"按钮1被点击了%ld次", self.button1.clickCount];
}

- (IBAction)button2Touched:(id)sender {
    self.infoLabel.text = [NSString stringWithFormat:@"按钮2被点击了%ld次", self.button2.clickCount];
}

@end
